package com.itbaizhan.service.impl;

import com.itbaizhan.dao.ItemESDao;
import com.itbaizhan.pojo.ItemES;
import com.itbaizhan.service.SearchService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author spf
 * @date 2024/3/6
 * @time 11:11
 */
@Service
public class SearchServiceImpl implements SearchService {

    @Autowired
    private ItemESDao itemESDao;

    @Override
    public List<ItemES> search(String city, String content, int page, int rows) {
        return itemESDao.queryForPage(city, content, page, rows);
    }
}
